const express = require("express");
const cors = require("cors");
const bp = require("body-parser");
const app = express();
app.use(cors());
app.use(bp.urlencoded({extended:false}))
app.use(bp.json());

app.get("/fGet",(req,res)=>{
    res.json("get-ok")
    console.log(req.query)
})

app.post("/fPost",(req,res)=>{
    res.json("post-ok")
    console.log(req.body)
})

app.listen(4567,function (){
    console.log("服务器已搭建，监听4567端口")
})